package com.huawei.esdk.tp.cxf.enumgen;

public abstract class VideoFormatMapping {
    
    public final static int CIF_4 = 0;
    public final static int P_720 = 1;
    public final static int P_1080 = 2;
    public final static int P_480 = 3;
    public final static int P_720_60_F = 4;
    public final static int P_1080_60_F = 5;
    public final static int MIN = 0;
    public final static int MAX = 5;

	public static Integer enum2Int(VideoFormat videoFormat) {
	    if (null == videoFormat)
        {
            return null;
        }
		switch (videoFormat) {
		case CIF_4: {
			return CIF_4;
		}
		case P_720: {
			return P_720;
		}
		case P_1080: {
			return P_1080;
		}
		case P_480: {
			return P_480;
		}
		case P_720_60_F: {
			return P_720_60_F;
		}
		case P_1080_60_F: {
			return P_1080_60_F;
		}
		default: {
			return null;
		}
		}
	}

	public static VideoFormat int2Enum(Integer num) {
		if(null==num){
			return null;
		}
		switch (num) {
		case CIF_4: {
			return VideoFormat.CIF_4;
		}
		case P_720: {
			return VideoFormat.P_720;
		}
		case P_1080: {
			return VideoFormat.P_1080;
		}
		case P_480: {
			return VideoFormat.P_480;
		}
		case P_720_60_F: {
			return VideoFormat.P_720_60_F;
		}
		case P_1080_60_F: {
			return VideoFormat.P_1080_60_F;
		}
		default: {
			return null;
		}
		}
	}

}
